package com.genius.adminmanager.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.fastjson.JSONObject;
import com.genius.adminmanager.other.entity.ResponseJson;
import com.genius.adminmanager.user.service.UserService;

@Controller
public class TableSelectController {
	@Autowired
    @Qualifier("userTableSelectService")
    private UserService userTableSelectService;
	
    @PostMapping("/adminmanager/user/getTableSelect")
    @ResponseBody
    public JSONObject getTableSelect(@RequestBody JSONObject json){
        JSONObject response = new JSONObject();
        response.put(ResponseJson.code, 0);
        response = userTableSelectService.getTableSelect(json, response);
        return response;
    }
}
